<template>
  <div class="page">
    <!-- 外层容器 -->
    <el-container>
        <!-- 侧边容器 -->
      <el-aside width="200px">Aside</el-aside>
      <el-container>
        <!-- 顶栏容器 -->
        <el-header>Header</el-header>
        <!-- 主体内容容器 -->
        <el-main>Main</el-main>
        <!-- 底栏容器 -->
        <el-footer>Footer</el-footer>
      </el-container>
    </el-container>
  </div>
  <!-- 100vh当前屏幕的高 -->
</template>

<script setup lang="ts"></script>

<style scoped lang="less">
.page{
    .el-container{
        .el-aside{
            background-color: gray;
            min-height: 100vh;
        }
        .el-container{
            .el-header{
                background-color: red;
            }
            .el-main{
                background-color: orange;
            }
            .el-footer{
                background-color: pink;
            }
        }
    }
}
</style>
